<template>
  <div id="app">
    <div class="header">网页头部</div>
    <div class="content">
      <!-- 使用子组件标签 -->
      <CartHeader/>
      <CartList />
      <CartFooter/>
    </div>
    <div class="footer">网页底部</div>
  </div>
</template>

<script>

 //引入子组件
 import CartHeader from "./components/CartHeader.vue";
 import CartList from "./components/CartList.vue";
 import CartFooter from "./components/CartFooter.vue";
 
export default {
  name: 'App',

  //注册子组件
  components:{
    CartHeader,
    CartList,
    CartFooter,
  },
  
};

</script>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
}

ul,
ol,
li {
  list-style: none;
}

input,
button,
textarea {
  outline: none;
  border: none;
}

a,
a:hover,
a:target,
a:link,
a:active {
  text-decoration: none;
  color: #333;
}

a,
img {
  width: 100%;
  height: 100%;
  display: block;
}
.header,
.footer {
  width: 1200px;
  height: 80px;
  background-color: skyblue;
  color: #fff;
  font-size: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.footer {
  height: 300px;
  font-size: 100px;
}
.content {
  width: 1200px;
  padding: 10px 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

  
</style>
